﻿using Shop.Model.DB;
using Shop.RemoteModel;
using WeDonekRpc.SqlSugar;

namespace Shop.Repository.lmpl
{
    internal class PageModuleListRepository : ShopBaseRepository<DBPageModuleList, long>, IPageModuleListRepository
    {
        public PageModuleListRepository ( ISqlClientFactory factory ) : base(factory)
        {
        }
        public Result[] Gets<Result> ( PageUseRange useRange ) where Result : class, new()
        {
            return base.Gets<Result>(a => a.UseRange == useRange && a.Status == PageModuleStatus.启用);
        }
    }
}
